//
//  TWSComposeViewController.m
//  TWSWeibo
//
//  Created by Twisal on 2016/12/28.
//  Copyright © 2016年 Twisal. All rights reserved.
//

#import "TWSComposeViewController.h"

@interface TWSComposeViewController ()

@end

@implementation TWSComposeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}



- (void)setupUI {
    self.view.backgroundColor = [UIColor cz_randomColor];
    UIButton *button = [[UIButton alloc] initWithFrame:CGRectMake(100, 100, 100, 30)];
    button.backgroundColor = [UIColor blackColor];
    [button setTitle:@"关闭" forState:UIControlStateNormal];
    [button addTarget:self action:@selector(closeVc) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
}


- (void)closeVc {
    [self dismissViewControllerAnimated:YES completion:nil];
}

@end
